<div class="row-fluid">
    <div class="span2">
        <div>
            <p class="nav-header">Actions</p>
            <ul class="nav nav-tabs nav-stacked">                
                <li><a href="<?php echo $this->Html->url('index/'); ?>">List Brokers</a></li>
            </ul>
        </div>
    </div>
    <div class="span10">
        <form action="<?php echo $this->Html->url('add/'); ?>" class="well" id="BrokerAddForm" method="post" accept-charset="utf-8">
            <div style="display:none;">
                <input type="hidden" name="_method" value="PUT">
            </div>        
            <fieldset>
                <legend>Add Broker</legend>
                <div class="control-group required">
                    <label for="Name">FullName (*)</label>
                    <input name="fullname" help="" maxlength="45" type="text" value="" id="Name" required="required">
                </div>

                <div class="control-group required">
                    <label for="Email">Email (*)</label>
                    <input name="email" help="" maxlength="45" type="text" value="" id="Email" required="required">
                </div>
                
                <div class="control-group required">
                    <label for="Company">Company (*)</label>
                    <select name="company" help="" id="Company" required="required">
                        <?php
                        foreach ($companies as $company) {
                            echo '<option value="'.$company['Company']['id'].'">'.$company['Company']['name'].'</option>';
                        }
                        ?>
                    </select>                    
                </div>
                
                <div class="control-group required">
                    <label for="Address">Address</label>
                    <input name="address" help="" maxlength="45" type="text" value="" id="Address">
                </div>
                
                <div class="control-group required">
                    <label for="Description">Description</label>
                    <textarea name="description" help="" type="text" value="" id="Description"></textarea>
                    <script>
                        // Replace the <textarea id="editor1"> with a CKEditor
                        // instance, using default configuration.
                        CKEDITOR.replace('description');
                    </script>
                </div>  
                
                <div class="control-group required">
                    <label for="Order">Order</label>
                    <input name="order" help="" maxlength="45" type="number" value="0" id="Order" required="required">
                </div> 
                
                <div class="control-group">
                    <label for="UserStatus">Status</label>
                    <select name="status" help="" id="UserStatus">
                        <option value="1">Yes</option>
                        <option value="0">No</option>
                    </select>
                </div>
            </fieldset>        
            <div class="submit">
                <input class="btn btn-primary" type="submit" value="Save">
            </div>
        </form>    
    </div>
</div>